<script>
  class RequestHeader  {
    constructor(loginId,token,clientType) {
      if(loginId&&token&&clientType){
        RequestHeader.req={loginId:loginId,token:token,clientType:clientType}
      }
    }

  }

let req=new RequestHeader("1","lasdkjfoi122e3",'SYS')
  document.cookie="header="+JSON.stringify(RequestHeader.req)
console.log( RequestHeader.req)

</script>
